package org.changneng.framework.frameworkbusiness.controller;

import java.io.UnsupportedEncodingException;



public class Test {
    public static void main(String[] args) {

        String s1="你好";

        try {
            String s2 = new String(s1.getBytes("GB2312"),"ISO-8859-1");
            System.out.println("【笔试题】怎样将 GB2312 编码的字符串转换为 ISO-8859-1 编码的字符串.？");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
    }
}
